package client

const (
	DefaultMysql = "master"
	DefaultRedis = "default"
)

type clients struct {
}

func (c *clients) Init() error {
	if err := mc.Init(); err != nil {
		return err
	}
	if err := rc.Init(); err != nil {
		return err
	}
	return nil
}

func (c *clients) Shutdown() error {
	if err := mc.Shutdown(); err != nil {
		return err
	}
	if err := rc.Shutdown(); err != nil {
		return err
	}
	return nil
}

func (c *clients) Name() string {
	return "clients"
}

func Clients() *clients {
	return &clients{}
}
